package com.example.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.domain.user;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Controller;

import java.util.List;

@Mapper
@Controller
public interface userQuery extends BaseMapper<user> {
    @Select("select * from user where openid=${openId}")
    public user selectByOpenId(String openId);

    @Select("select * from user LIMIT ${a},${b}")
    List<user> findAll(int a,int b);

    @Select("select count(*) from user")
    public int allnumber();


}
